package com.skyhub.common.configurations.utils;

import com.skyhub.common.configurations.config.JedisConfigurations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;

@Configuration
public class Beans{
    @Bean
    public Jedis jedis(){
        Jedis jedis=new Jedis(JedisConfigurations.HOST, JedisConfigurations.PORT);

//        jedis.auth(JedisConfigurations.PASSWORD);

        return jedis;
    }
}
